#ifndef __LCD_H__
#define __LCD_H__
/*variable definition*/


//sbit LCDBUSY = P1^7;
sbit LCDRST = P1^0;
sbit EN = P1^1;
sbit RW = P1^2;
sbit RS = P1^3;
sbit LCS2 = P1^4;
sbit LCS1 = P1^5;



extern unsigned char data led[4];

/*command constant definition*/
#define LCDON 0x3f     //turn on the lcd
#define LCDOFF 0x3e	   //turn off the lcd




/*function declaration*/
void lcd_disp(unsigned char data page,unsigned char data line,unsigned char *character);
void lcd_init(void);
void lcd_clr(void);
void lcd_data(unsigned char data dat);
void lcd_sta(unsigned char data sta);
void delay(unsigned char itime);

#endif